
# 复制默认配置文件
if(NOT EXISTS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sgsim.conf")
  file(COPY "${CMAKE_SOURCE_DIR}/Resource/config/sgsim.conf" DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
endif()

if(NOT EXISTS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sglogger.conf")
  file(COPY "${CMAKE_SOURCE_DIR}/Resource/config/sglogger.conf"  DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
endif()

# 复制默认的license文件
file(COPY "${CMAKE_SOURCE_DIR}/Resource/config/license.dat"  DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")

install(FILES ${CMAKE_SOURCE_DIR}/Resource/config/sgsim.conf DESTINATION bin)
install(FILES ${CMAKE_SOURCE_DIR}/Resource/config/sglogger.conf DESTINATION bin)
install(FILES ${CMAKE_SOURCE_DIR}/Resource/config/license.dat DESTINATION bin)